package com.farewell.blog.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.farewell.blog.pojo.User;

/**
 * @author Farewell
 * @date 2021/2/15
 */
public interface UserMapper extends BaseMapper<User> {
    /**
     * 通过用户名获取用户对象
     * @param username 用户名
     * @return 用户对象
     */
    User getUserByUsername(String username);
}
